package com.waverider.promotion.biz.util;

import java.util.Date;

public class DateUtils {
	public long fromNow(Date endTime) {
		if (endTime == null)
			return 0;
		return endTime.getTime() - new Date().getTime();
	}
}
